package top.tangyh.lamp.care.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import top.tangyh.basic.base.R;
import top.tangyh.lamp.care.service.BYcSunShangDictService;
import top.tangyh.lamp.care.vo.result.SunShangOutVO;
import top.tangyh.lamp.care.vo.result.PingGuOutVO;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * 压疮—压力性损伤记录选项字典表
 * </p>
 *
 * @author zqb
 * @date 2024-07-16 14:57:45
 * @create [2024-07-16 14:57:45] [zqb] [代码生成器生成]
 */
@Slf4j
@RequiredArgsConstructor
@Validated
@RestController
@RequestMapping("/yc")
@Tag(name = "压疮相关接口")
public class BYcSunShangDictController  {
//    extends SuperController<BYcSunShangDictService, Long, BYcSunShangDict
//            , BYcSunShangDictSaveVO, BYcSunShangDictUpdateVO, BYcSunShangDictPageQuery, BYcSunShangDictResultVO>
//    private final EchoService echoService;
//    @Override
//    public EchoService getEchoService() {
//        return echoService;
//    }

    private final BYcSunShangDictService bYcSunShangDictService;

    private final top.tangyh.lamp.care.service.BYcDadDictService bYcDadDictService;

    @Operation(summary ="获取压疮损伤记录字典")
    @GetMapping("/dict/sun_shang")
    public R<SunShangOutVO> sunShangData() {
        return R.success(bYcSunShangDictService.selectSunShangDict());
    }

    @Operation(summary ="获取压疮评估标准相关字典")
    @GetMapping("/dict/pg")
    public R<PingGuOutVO> pgData() {
        return R.success(bYcDadDictService.selectYcPingGuData());
    }


//    @Operation(summary ="同步压疮字典数据到本地")
//    @GetMapping("/dict/sun_shang/sync")
//    @ApiIgnore
//    public R syncSunShangDict() {
//        return R.success(bYcSunShangDictService.syncSunShangDictData());
//    }

//    @Operation(summary ="同步压疮字典数据到本地")
//    @GetMapping("/dict/pg/sync")
//    public R syncPgDict() {
//        return R.success(bYcDadDictService.syncPgDictData());
//    }

}


